import myaxios from '../MyAxios';
//引入路径前缀
import BASEURL from '../BaseUrl';
const { BaseURL } = BASEURL;

const adminApi = {
  /**
   * 执行登录业务
   * @param {Object} params {username:xx,  password:xxx}
   */
  login(params) {
    return myaxios.post(BaseURL + '/user/login', params);
  },
};

export default adminApi;
